home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / locale / nsIFontPackageProxy.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  115 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFontPackageProxy.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFontPackageProxy_h__
  6. #define __gen_nsIFontPackageProxy_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIFontPackageProxy */
  19. #define NS_IFONTPACKAGEPROXY_IID_STR "6712fdd4-f978-11d4-a144-005004832142"
  20.  
  21. #define NS_IFONTPACKAGEPROXY_IID \
  22.   {0x6712fdd4, 0xf978, 0x11d4, \
  23.     { 0xa1, 0x44, 0x00, 0x50, 0x04, 0x83, 0x21, 0x42 }}
  24.  
  25. class NS_NO_VTABLE nsIFontPackageProxy : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFONTPACKAGEPROXY_IID)
  29.  
  30.   /**
  31.     * Request a font package. The proxy will call font package 
  32.     * handler to download the font package
  33.     * @param aFontPackID a font package ID.
  34.     * The id have the following naming convenation 
  35.     *  name_space:name
  36.     * we currently define one name space
  37.     *    lang - a font package for a particular language group
  38.     * and udnder the lang name space, we use the language code to identify
  39.     * the package, below are the defined packages
  40.     *   ja - Japanese font package ("lang:ja")
  41.     *   ko - Korean font package ("lang:ko")
  42.     *   zh-TW - Traditional Chinese font package ("lang:zh-TW")
  43.     *   zh-CN - Simplified Chinese font package ("lang:zh-CN")
  44.     * In the future, we may want to add
  45.     *    ar - Arabic font packges ("lang:ar")
  46.     *    he - Hebrew font packages ("lang:he")
  47.     *    th - Thai font package ("lang:th")
  48.     * other name space are reserved for now.
  49.     *
  50.     * This interface is implemented by Gecko for internal purpose
  51.     * It is a service and are different from nsIFontPackageHandler although
  52.     * the method signature is the same. 
  53.     * Embedding application should not see this interface.
  54.     */
  55.   /* void NeedFontPackage (in string aFontPackID); */
  56.   NS_IMETHOD NeedFontPackage(const char *aFontPackID) = 0;
  57.  
  58. };
  59.  
  60. /* Use this macro when declaring classes that implement this interface. */
  61. #define NS_DECL_NSIFONTPACKAGEPROXY \
  62.   NS_IMETHOD NeedFontPackage(const char *aFontPackID); 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  65. #define NS_FORWARD_NSIFONTPACKAGEPROXY(_to) \
  66.   NS_IMETHOD NeedFontPackage(const char *aFontPackID) { return _to NeedFontPackage(aFontPackID); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIFONTPACKAGEPROXY(_to) \
  70.   NS_IMETHOD NeedFontPackage(const char *aFontPackID) { return !_to ? NS_ERROR_NULL_POINTER : _to->NeedFontPackage(aFontPackID); } 
  71.  
  72. #if 0
  73. /* Use the code below as a template for the implementation class for this interface. */
  74.  
  75. /* Header file */
  76. class nsFontPackageProxy : public nsIFontPackageProxy
  77. {
  78. public:
  79.   NS_DECL_ISUPPORTS
  80.   NS_DECL_NSIFONTPACKAGEPROXY
  81.  
  82.   nsFontPackageProxy();
  83.  
  84. private:
  85.   ~nsFontPackageProxy();
  86.  
  87. protected:
  88.   /* additional members */
  89. };
  90.  
  91. /* Implementation file */
  92. NS_IMPL_ISUPPORTS1(nsFontPackageProxy, nsIFontPackageProxy)
  93.  
  94. nsFontPackageProxy::nsFontPackageProxy()
  95. {
  96.   /* member initializers and constructor code */
  97. }
  98.  
  99. nsFontPackageProxy::~nsFontPackageProxy()
  100. {
  101.   /* destructor code */
  102. }
  103.  
  104. /* void NeedFontPackage (in string aFontPackID); */
  105. NS_IMETHODIMP nsFontPackageProxy::NeedFontPackage(const char *aFontPackID)
  106. {
  107.     return NS_ERROR_NOT_IMPLEMENTED;
  108. }
  109.  
  110. /* End of implementation class template. */
  111. #endif
  112.  
  113.  
  114. #endif /* __gen_nsIFontPackageProxy_h__ */
  115.